package org.example.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.po.User;

@Mapper
public interface UserMapper {
    @Select("select * from user where id = #{id}")
    User getById(Long id);

    @Insert("insert into user(id, name, gender, birth, create_time) values (#{id}, #{name}, #{gender}, #{birth}, #{createTime})")
    boolean saveUser(User user);
}
